// AI服务配置文件
module.exports = {
  // 默认使用的AI服务
  defaultProvider: 'deepseek',
  
  // 各AI服务提供商配置
  providers: {
    // 火山AI配置
    huoshan: {
      enabled: true,
      apiKey: '8a434f4d-78b0-4793-a556-d39dee789f9a',
      secretKey: '',
      endpoint: 'https://ark.cn-beijing.volces.com/api/v3/chat/completions',
      model: 'doubao-seed-1-6-flash-250715',
      maxTokens: 2000,
      temperature: 0.7
    },
    
    // DeepSeek AI配置
    deepseek: {
      enabled: true,
      apiKey: 'sk-7e676a6ba31c441293deb8657655dc65',
      endpoint: 'https://api.deepseek.com/v1/chat/completions',
      model: 'deepseek-chat',
      maxTokens: 2000,
      temperature: 0.7
    },
    
    // 通义千问AI配置
    tongyi: {
      enabled: true,
      apiKey: 'sk-04f84bf989bd42628f110c118bc2688a',
      endpoint: 'https://dashscope.aliyuncs.com/api/v1/services/aigc/text-generation/generation',
      model: 'qwen3-max',
      maxTokens: 2000,
      temperature: 0.7
    }
  },
  
  // 通用配置
  common: {
    timeout: parseInt(process.env.AI_TIMEOUT) || 30000,
    retryCount: parseInt(process.env.AI_RETRY_COUNT) || 3,
    retryDelay: parseInt(process.env.AI_RETRY_DELAY) || 1000
  }
};